<%
	String reportId = request.getParameter("reportId");
	String finTypeId = request.getParameter("finTypeId");
	String companyIds = request.getParameter("companyIds");
	String lowerRange = request.getParameter("lowerRange");
	String upperRange = request.getParameter("upperRange");
	String pNo = request.getParameter("page");
	System.out.println("page no " + pNo);
	int pageNo = -1;
	if(MerlinUtilities.containsOnlyDigits(pNo)){
		pageNo = Integer.parseInt(pNo);
	}
	List  result = MsalResearchersManager.getFinancialDetailsForCompaniesByReportAndFinancialType(Integer.parseInt(reportId), Integer.parseInt(finTypeId), lowerRange, upperRange, companyIds, pageNo);
	System.out.println("sizzze " + result.size());
%><%
	for(int i=0;i<result.size(); i++){
		FinancialDetailsBean bn = (FinancialDetailsBean)result.get(i);
		if ( i > 0 ) out.print( "|" );
%>{"cId":"<%=bn.getCompanyNumber()%>","cName":"<%=bn.getCompanyName()%>","val":"<%=(bn.getYear1() != null ? bn.getYear1() : "")%>","selectedForReport":true}<%
	}%>
<%@page import="merlin.managers.*,merlin.beans.*,merlin.utils.*,java.util.*" contentType="text/plain" %>